complete the square method